import { Component, OnInit } from '@angular/core';
import { Singlepage } from '../../model/singlepage';

@Component({
  selector: 'app-singlepagelist',
  templateUrl: './singlepagelist.component.html',
  styleUrls: ['./singlepagelist.component.css']
})
export class SinglepagelistComponent implements OnInit {
  sl:Array<Singlepage>;

  constructor() {
    this.sl=new Array();
    for(let i=0;i<3;i++){
      let s=new Singlepage();
        s.singlepageid="id"+i;
        s.img   ="" ;
        s.summary="摘要"+i;
        s.title="标题"+i;
        s.detail="正文内容"+i;

this.sl.push(s);
    }


   }

  ngOnInit() {
  }

}
